<?php

Route::group([
    'prefix' => 'admin',
    'middleware' =>'auth.admin',
], function () {
    Route::get('user/admin-list', [
        'as' => 'AdminAdminList',
        'alias' => '管理员列表',
        'uses' => 'Admin\UserController@showAdminList'
    ]);

    Route::get('user/admin-edit', [
        'as' => 'AdminAdminEdit',
        'alias' => '管理员编辑',
        'uses' => 'Admin\UserController@showAdminEdit'
    ]);

    Route::post('user/admin-edit', [
        'as' => 'AdminAdminEditAction',
        'alias' => '管理员编辑保存',
        'uses' => 'Admin\UserController@saveAdminEdit'
    ]);

    Route::get('user/member-list', [
        'as' => 'AdminMemberList',
        'alias' => '用户列表',
        'uses' => 'Admin\UserController@showMemberList'
    ]);

    Route::get('user/member-edit', [
        'as' => 'AdminMemberEdit',
        'alias' => '用户编辑',
        'uses' => 'Admin\UserController@showMemberEdit'
    ]);

    Route::post('user/member-edit', [
        'as' => 'AdminMemberEditActivity',
        'alias' => '用户编辑保存',
        'uses' => 'Admin\UserController@saveMemberEdit'
    ]);
});